package com.insea.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.insea.dao.ExamenDao;
import com.insea.model.Acte;
import com.insea.model.Examen;
import com.insea.model.Facture;
import com.insea.model.Patient;
import com.insea.service.ExamenExistsException;
import com.insea.service.ExamenManager;


public class ExamenManagerImpl extends GenericManagerImpl<Examen, Long> implements ExamenManager{

	ExamenDao examenDao;
	
	public ExamenManagerImpl(ExamenDao examenDao) {
        super(examenDao);
        this.examenDao = examenDao;
    }

	public List<Examen> getListExamensByPatient(Patient patient) {
		return examenDao.getListExamensByPatient(patient);
	}
	public List<Examen> getExamensByName(String query, Patient patient) {
		return examenDao.getExamensByName(query, patient);
	}

	public List getExamenByFacture(Facture facture) {
		return examenDao.getExamenByFacture(facture);
	}


}
